package com.maxh.service.impl;

import com.maxh.mapper.AttributeMapper;
import com.maxh.pojo.Attribute;
import com.maxh.service.AttributeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("AttributeService")
public class AttributeServiceImpl implements AttributeService {
    @Autowired(required =  false)
    AttributeMapper attributeMapper;

    //获取用户信息
    public Object attributeList(){
        return attributeMapper.attributeList();
    }

    @Override
    public boolean addAttribute(Map<String, Object> map) {
        return attributeMapper.addAttribute(map);
    }

    @Override
    public boolean updateAttribute(Map<String, Object> map) {
        return attributeMapper.updateAttribute(map);
    }

    @Override
    public Attribute searchByName(String attributeName) {
        return attributeMapper.findAttributeName(attributeName);
    }

    @Override
    public Object attributeListAll() {
        return attributeMapper.findAttributeAll();
    }



}
